<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> 
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Grima Portal</title>
	<link rel="stylesheet" type="text/css" href="../../css/themes/bootstrap/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../css/icon.css">
	<link rel="stylesheet" type="text/css" href="../../css/portal.css">
	<link rel="stylesheet" type="text/css" href="../../css/font-awesome.min.css">
	
	<script type="text/javascript" src="../../js/jquery.min.js"></script>
	<script type="text/javascript" src="../../js/jquery.easyui.min.js"></script>
</head>
<body class="easyui-layout">
	
    <div data-options="region:'north',border:false" style="height:50px;padding:10px;overflow: hidden;">
		<jsp:include page="../header.jsp" />
	</div>
    <div data-options="region:'east',split:true,collapsed:true,title:' '" style="width:250px;padding:10px;"></div>
	<div data-options="region:'south',border:false" style="height:30px;padding:10px;background:#F5F5F5;text-align:center;color:#707070">
		<jsp:include page="../footer.jsp" />
	</div>
    <div data-options="region:'center',title:'Sistema'">
	<div style="margin:5px">
			<a href="#" title="Gravar" onclick="saveSystem();"><i class="fa fa-save" style="font-size:18px;color:green;padding:5px;"></i>Salvar</a>
			<a href="../index.html" title="Voltar"><i class="fa fa-mail-reply" style="font-size:18px;color:green;padding:5px;"></i>Voltar</a>			
		</div>
		<br/>

		<c:url var="url" value="/secure/admin/saveSystem.html" />
	    <form:form id="systemForm" action="${url}" method="POST" modelAttribute="system" enctype="multipart/form-data">
    
		<div class="easyui-tabs" >
			<div title="Dados Gerais" style="padding:10px">

				<form:hidden path="id"/>
	
		    	<table cellpadding="5">
		    		<tr>
		    			<td>Empresa:</td>
		    			<td>
   			            	<form:errors path="company" cssClass="errors"/>
           					<form:input cssStyle="easyui-validatebox textbox" maxlength="50" path="company" size="50"/>
		    			</td>
		    		</tr>

		    	</table>
			</div>

		</div>
		
		</form:form>		

    </div>

	<style scoped="scoped">
		.textbox{
			height:20px;
			margin:0;
			padding:0 2px;
			box-sizing:content-box;
		}
	</style>
	<script>
		function saveSystem(){
			$('form#systemForm').submit();
		}
	</script>

</body>
</html>